package com.cebbank.yyi.springbootapp.bo;

import com.cebbank.yyi.springbootapp.annocation.Excel;
import com.cebbank.yyi.springbootapp.annocation.Excels;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

@Data
public class UserBO {


    /**
    * , handler = CustomerHandler.class, args = {"aaa", "bbb"}
    * **/
    @Excel(name = "id", needMerge = true)
    private int id;

    @Excel(name = "用户名", align = HorizontalAlignment.LEFT, needMerge = true)
    private String userName;

    @Excel(name = "简介", needMerge = true)
    private String description;

    //@Excel(name = "地址", needMerge = true)
    @Excels({
            @Excel(name = "街道", targetAttr = "street"),
            @Excel(name = "城市", targetAttr = "city"),
            @Excel(name = "区域", targetAttr = "state")
    })
    private AddressBO address = new AddressBO();


}
